package com.wujay.fund.common;

import android.content.Context;
import android.content.SharedPreferences;

/**
 * Created by Administrator on 2016/10/10.
 */
public class CommonUtlis {
    private static SharedPreferences sp = null;

    public static void getInstance(Context context) {
        if (sp == null)
            sp = context.getSharedPreferences("GesturePassword", Context.MODE_APPEND);
    }

    public static void saveGesturePassword(Context context, String password) {
        sp.edit().putString("gesturepassword", password).commit();
    }

    public static String getGesturePassword(Context context) {
        return sp.getString("gesturepassword", "");

    }

    public static void clearGesturePassword(Context context) {
        sp.edit().remove("gesturepassword");
    }
}
